package com.la.hyby;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;
import android.widget.ImageView;

public class RegisterActivity extends Activity implements OnClickListener {

	private ImageView back;
	private Button next;
	private EditText reg_name, reg_pwd, reg_surepwd;
	private CheckBox checkbox;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_register);
		reg_name = (EditText)findViewById(R.id.register_username);
		reg_pwd = (EditText)findViewById(R.id.register_password);
		reg_surepwd = (EditText)findViewById(R.id.register_ensurepwd);
		back = (ImageView)findViewById(R.id.register_back);
		next = (Button)findViewById(R.id.register_next);
		checkbox = (CheckBox)findViewById(R.id.register_checkbox);
		
		back.setOnClickListener(this);
		next.setOnClickListener(this);
		
		checkbox.setOnCheckedChangeListener(new OnCheckedChangeListener() {
			
			@Override
			public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
				// TODO Auto-generated method stub
				
			}
		});
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId()){
		case R.id.register_back:
			
			break;
		case R.id.register_next:
			Intent intent = new Intent(RegisterActivity.this,null);
			startActivity(intent);
			break;
		}
	}
}
